|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.DSS.Erand
Erand
objects represent exponentially
distributed pseudo random number streams.
Field Summary | |
protected double |
lambda
The distribution defining value, set by constructor. |
protected java.util.Random |
myRandom
|
Constructor Summary | |
Erand(double lambda)
|
|
Erand(double lambda,
java.util.Random myRandom)
Create an exponential random stream with mean lambda |
Method Summary | |
double |
draw()
Draw the next number in this stream. |
double |
nonDeterministicDraw(int howMany)
Draw several numbers from this stream. |
double |
twoChoice()
Draw two random numbers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double lambda
protected java.util.Random myRandom
Constructor Detail |
public Erand(double lambda)
public Erand(double lambda, java.util.Random myRandom)
lambda
- Method Detail |
public double draw()
public double nonDeterministicDraw(int howMany)
howMany
parameter
howMany
drawn numbers.
howMany
- The number of numbers to be drawn.
public double twoChoice()
nonDeterministicDraw( 2 )
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |